All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.event.AncestorEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----java.awt.AWTEvent
                   |
                   +----com.sun.java.swing.event.AncestorEvent

public class AncestorEvent
extends AWTEvent
AncestorEvent

Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.


Variable Index

 o ANCESTOR_ADDED
 o ANCESTOR_MOVED
 o ANCESTOR_REMOVED

Constructor Index

 o AncestorEvent(JComponent, int, Container, Container)

Method Index

 o getAncestor()
Returns the ancestor that the event actually occured on.
 o getAncestorParent()
Returns the parent of the ancestor the event actually occured on.
 o getComponent()
Returns the component that the listener was added to.

Variables

 o ANCESTOR_ADDED
 public static final int ANCESTOR_ADDED
 o ANCESTOR_REMOVED
 public static final int ANCESTOR_REMOVED
 o ANCESTOR_MOVED
 public static final int ANCESTOR_MOVED

Constructors

 o AncestorEvent
 public AncestorEvent(JComponent source,
                      int id,
                      Container ancestor,
                      Container ancestorParent)

Methods

 o getAncestor
 public Container getAncestor()
Returns the ancestor that the event actually occured on.

 o getAncestorParent
 public Container getAncestorParent()
Returns the parent of the ancestor the event actually occured on. This is most interesting in an ANCESTOR_REMOVED event, as the ancestor may no longer be in the component hierarchy.

 o getComponent
 public JComponent getComponent()
Returns the component that the listener was added to.


All Packages  Class Hierarchy  This Package  Previous  Next  Index